package com.example.mycalculator;



import android.app.Activity;
import android.app.ActionBar;
import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.view.Window;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TableRow;
import android.os.Build;

public class MainActivity extends Activity implements OnClickListener{
	private TableRow tr1;
	private TableRow tr2;
	private TableRow tr3;
	private TableRow tr4;
	private EditText editText;
	private Button button_clear;
	private Button button_delete;
	private Button button_divide;
	private Button button_multiply;
	private Button button_seven;
	private Button button_eight;
	private Button button_nine;
	private Button button_reduce;
	private Button button_four;
	private Button button_five;
	private Button button_six;
	private Button button_add;
	private Button button_one;
	private Button button_two;
	private Button button_three;
	private Button button_equal;
	private Button button_more;
	private Button button_dot;
	protected void OnCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		/*tr1=(TableRow)findViewById(R.id.tablerow1);
		tr2=(TableRow)findViewById(R.id.tablerow2);
		tr3=(TableRow)findViewById(R.id.tablerow3);
		tr4=(TableRow)findViewById(R.id.tablerow4);*/
		editText=(EditText)findViewById(R.id.edit_text);
		button_clear=(Button)findViewById(R.id.clear_button);
		button_delete=(Button)findViewById(R.id.delete_button);
		button_divide=(Button)findViewById(R.id.divide_button);
		button_multiply=(Button)findViewById(R.id.multiply_button);
		button_seven=(Button)findViewById(R.id.seven_button);
		button_eight=(Button)findViewById(R.id.eight_button);
		button_nine=(Button)findViewById(R.id.nine_button);
		button_reduce=(Button)findViewById(R.id.reduce_button);
		button_four=(Button)findViewById(R.id.four_button);
		button_five=(Button)findViewById(R.id.five_button);
		button_six=(Button)findViewById(R.id.six_button);
		button_add=(Button)findViewById(R.id.add_button);
		button_one=(Button)findViewById(R.id.one_button);
		button_two=(Button)findViewById(R.id.two_button);
		button_three=(Button)findViewById(R.id.three_button);
		button_equal=(Button)findViewById(R.id.equal_button);
		button_more=(Button)findViewById(R.id.more_button);
		button_dot=(Button)findViewById(R.id.dot_button);
		editText.setOnClickListener(this);
		button_clear.setOnClickListener(this);
		button_delete.setOnClickListener(this);
		button_divide.setOnClickListener(this);
		button_multiply.setOnClickListener(this);
		button_seven.setOnClickListener(this);
		button_eight.setOnClickListener(this);
		button_nine.setOnClickListener(this);
		button_reduce.setOnClickListener(this);
		button_four.setOnClickListener(this);
		button_five.setOnClickListener(this);
		button_six.setOnClickListener(this);
		button_add.setOnClickListener(this);
		button_one.setOnClickListener(this);
		button_two.setOnClickListener(this);
		button_three.setOnClickListener(this);
		button_equal.setOnClickListener(this);
		button_more.setOnClickListener(this);
		button_dot.setOnClickListener(this);*/
	}
	
	public void onClick(View v){
		/*switch(v.getId()){
		case R.id.clear_button:
			editText.setText("");
			break;
		case R.id.delete_button:
			editText.getText().
		case R.id.nine_button:
			editText.setText("9");
			break;
		case R.id.eight_button:
			editText.setText("8");
			break;
			
		*/
	}

}
